#cart{
    width: 1200px;
    margin: 0 auto;
}
//未登录
#noLog{
    display: none;
    margin-top: 30px;
    height: 55px;
    padding: 15px 20px;
    border: 1px solid #ccc;
    h4{
        font-size: 16px;
        line-height: 30px;
        font-weight: normal;
        color: orange;
    }
    p{
        font-size: 14px;
        color: #999;
        a{
            color: #999;
            border-bottom: 1px solid #999;
        }
        a:hover{
            color: orange;
        }
    }
}
#cart>h1{
    margin-top: 30px;
    margin-bottom: 30px;
}
.title{
    font-size: 28px;
    position: relative;
}
.title::before{
    content: '';
    height: 4px;
    width: 55px;
    background-color: black;
    position: absolute;
    top: 0;
    left: 0;
}
.num{
    color: #999;
    font-size: 12px;
    font-weight: normal;
}

//购物车主体
#cartMain{
    width: 1200px;
    tr{
        width: 100%;
        height: 140px;
        padding: 20px 0;
        border-bottom: 1px solid #999;
        td:nth-child(1){
            width: 40px;
        }
        td:nth-child(2){
            width: 150px;
            img{
                width: 100px;
                height: 100px;
                margin-left: 25px;
            }
        }
        td:nth-child(3){
            width: 1010px;
            .fl{
                float: left;
                h5{
                    font-size: 18px;
                }
                p,span{
                    font-size: 14px;
                    line-height: 22px;
                    color: #999;
                }
                button{
                    width: 30px;
                    height: 26px;
                    background-color: #fff;
                    border: 1px solid #999;
                    cursor: pointer;
                }
                input{
                    width: 80px;
                    height: 26px;
                    border: 1px solid #999;
                    text-align: center;
                }
            }
            .fr{
                float: right;
                .price{
                    font-size: 16px;
                    color: black;
                }
                .del{
                    font-size: 14px;
                    color: #999;
                    cursor: pointer;
                }
            }
        }
    }
}

//购物车为空
#cartEmpty{
    margin-top: 30px;
    display: none;
    text-align: center;
    img{
        width: 80px;
    }
    p{
        margin-top: 15px;
        font-size: 14px;
        color: #999;
        a{
            color: #999;
            border-bottom: 1px solid #999;
        }
        a:hover{
            color: orange;
            border-bottom: 1px solid orange;
        }
    }
}

//结算
#pay{
    width: 100%;
    height: 60px;
    padding-top: 20px;
    margin-top: 200px;
    background-color: rgba(0,0,0,0.5);
    .left{
        float: left;
        width: 1000px;
        padding-left: 20px;
        line-height: 40px;
        color: #fff;
        font-size: 16px;
        .total{
            float: right;
            font-size: 18px;
        }
        .checkAll,input{
            cursor: pointer;
        }
        .delAll{
            cursor: pointer;
            margin-left: 15px;
        }
    }
    .right{
        float: right;
        border-left: 1px solid #fff;
        button{
            width: 120px;
            height: 40px;
            background-color: orangered;
            border: 0;
            margin-left: 30px;
            margin-right: 80px;
            color: #fff;
            font-size: 16px;
            cursor: pointer;
        }
    }
}